C# |
---|
public String GetIndented(String text) |
C# |
---|
// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false. var tb = new TextBuilder(); // Example Method: var result = tb.GetIndented("This text is NOT indented."); // The builder keeps track of the current number of indents. tb.AddIndent(2); result += tb.GetLine(); result += tb.GetIndented("This text is indented."); // result: // This text is NOT indented. // This text is indented. |